package com.ddstation.onsitelaw.model.auditmodel;


import com.ddstation.onsitelaw.entity.auditentity.MaEducationEntity;
import com.ddstation.onsitelaw.entity.auditentity.MaInsuranceEntity;
import com.ddstation.onsitelaw.entity.auditentity.MaMarriageEntity;
import com.ddstation.onsitelaw.entity.auditentity.MaProfessionEntity;

import java.util.ArrayList;
import java.util.List;

/**
 * 健康体检评估
 *
 * @author zhangdifeng
 * @date 2017年5月4日
 */
public class HealthDataBaseInfoModel {
    private HealthdataUserModel user;
    private List<BaseBean> marriageList; // ajax 动态生成 actionsheet
    private List<BaseBean> educationList; // ajax 动态生成 actionsheet
    private List<BaseBean> professionList; // ajax 动态生成 actionsheet
    private List<BaseBean> insuranceList; // ajax 动态生成 actionsheet

    public List<BaseBean> getMarriageList() {
        return marriageList;
    }

    public void setMarriageList(List<MaMarriageEntity> marriageList) {
        if (marriageList != null && marriageList.size() > 0) {
            this.marriageList = new ArrayList<BaseBean>();
            for (MaMarriageEntity entity : marriageList) {
                this.marriageList.add(new BaseBean(entity.getId(), entity.getName()));
            }
        }
    }

    public List<BaseBean> getEducationList() {
        return educationList;
    }

    public void setEducationList(List<MaEducationEntity> educationList) {
        if (educationList != null && educationList.size() > 0) {
            this.educationList = new ArrayList<BaseBean>();
            for (MaEducationEntity entity : educationList) {
                this.educationList.add(new BaseBean(entity.getId(), entity.getName()));
            }
        }
    }

    public List<BaseBean> getProfessionList() {
        return professionList;
    }

    public void setProfessionList(List<MaProfessionEntity> professionList) {
        if (professionList != null && professionList.size() > 0) {
            this.professionList = new ArrayList<BaseBean>();
            for (MaProfessionEntity entity : professionList) {
                this.professionList.add(new BaseBean(entity.getId(), entity.getName()));
            }
        }
    }

    public List<BaseBean> getInsuranceList() {
        return insuranceList;
    }

    public void setInsuranceList(List<MaInsuranceEntity> insuranceList) {
        if (insuranceList != null && insuranceList.size() > 0) {
            this.insuranceList = new ArrayList<BaseBean>();
            for (MaInsuranceEntity entity : insuranceList) {
                this.insuranceList.add(new BaseBean(entity.getId(), entity.getName()));
            }
        }
    }

    public HealthdataUserModel getUser() {
        return user;
    }

    public void setUser(HealthdataUserModel user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "HealthEvaluationBaseInfoModel [user=" + user + ", marriageList=" + marriageList + ", educationList="
                + educationList + ", professionList=" + professionList + ", insuranceList=" + insuranceList + "]";
    }
}
